package top.hjc.orange.test.UserController;


import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author: huangjicheng
 * @date: 2025/10/11
 * @desc：
 */
public class UserView {

    private Long id;

    private String name;

    private UserInfoView userInfo;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserInfoView getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoView userInfo) {
        this.userInfo = userInfo;
    }
}

class UserInfoView {

    private Long id;

    @JsonIgnore
    private String address;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}